package com.controller;

import com.service.ArticalChannelService;
import com.util.common.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/articalChannel")
@Api(tags = "帖子与频道")
public class ArticalChannelController {
   @Autowired
    private ArticalChannelService articalChannelService;
   @GetMapping("/todayCounts")
    public R todayCounts(Integer channelId){
       return R.ok(articalChannelService.todayCounts(channelId));
   }

}
